package org.zky.modules.account.service;

import org.springframework.data.domain.Pageable;
import org.zky.modules.account.domain.ZkyAccountRoleTab;
import org.zky.modules.account.service.dto.ZkyAccountRoleTabDto;
import org.zky.modules.account.service.dto.ZkyAccountRoleTabQueryCriteria;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
* @author chenglong
* @date 2020-03-23
*/
public interface ZkyAccountRoleTabService {

    /**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(ZkyAccountRoleTabQueryCriteria criteria, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<ZkyAccountRoleTabDto>
    */
    List<ZkyAccountRoleTabDto> queryAll(ZkyAccountRoleTabQueryCriteria criteria);

    /**
     * 根据ID查询
     * @param deleteAt ID
     * @return ZkyAccountRoleTabDto
     */
    ZkyAccountRoleTabDto findById(Integer deleteAt);

    /**
    * 创建
    * @param resources /
    * @return ZkyAccountRoleTabDto
    */
    ZkyAccountRoleTabDto create(ZkyAccountRoleTab resources);

    /**
    * 编辑
    * @param resources /
    */
    void update(ZkyAccountRoleTab resources);

    /**
    * 多选删除
    * @param ids /
    */
    void deleteAll(Integer[] ids);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<ZkyAccountRoleTabDto> all, HttpServletResponse response) throws IOException;
}